package eco2automotive.tasks;
import eco2automotive.port.ConnectionControl;

public class Task_INIT {
       ConnectionControl connControl;  
       
       public Task_INIT(ConnectionControl connControl){
       this.connControl=connControl;       
           
       }
       public void run(){           
        this.connControl.TXData("atz");                                      
        this.connControl.TXData("ATH1"); //HEADERS ON
        this.connControl.TXData("ATSP");  //SET AUTOMATIC
        this.connControl.TXData("0100");
        try{Thread.sleep(3000);}catch(Exception e){}                                            
        this.connControl.TXData("ATDP");        
       }
}
